package com.bba.manager.sku.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bba.manager.common.model.sku.Parts;
import com.bba.manager.common.model.sku.VO.partsQuery;
import com.bba.manager.sku.mapper.PartsMapper;
import com.bba.manager.sku.service.IPartsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 4S店配件表 服务实现类
 * </p>
 *
 * @author SYANDZZY
 * @since 2025-08-12
 */
@Service
public class PartsServiceImpl extends ServiceImpl<PartsMapper, Parts> implements IPartsService {

    @Override
    public IPage listByInfo(partsQuery query) {
        Page<Parts> page =new Page<>(query.getPage(),query.getLimit());
        return this.page(page);
    }
}
